package net.simflow.swf.analyzer.data;

import java.io.File;
import java.util.ArrayList;

public class FilesList {

	private static FilesList instance = new FilesList();

	private FilesList() {
	}

	public static FilesList getInstance() {
		return instance;
	}

	public File[] list(String[] uris) throws Exception {
		ArrayList<File> arrayFilesFilter = new ArrayList<File>();
		File file;

		for (String uri : uris) {
			file = new File(uri);
			if (file != null) {
				arrayFilesFilter.add(file);
			}
		}

		File[] files = new File[arrayFilesFilter.size()];
		arrayFilesFilter.toArray(files);
		return files;
	}
}
